import { FeatureType } from '../feature/types'

export interface ContentType {
  id?: number
  content_type?: string
  project?: string
  detail?: string[]
  detail_value?: string[]
  attachment?: string
  remark?: string
  check?: boolean
  is_pass?: boolean
}

export interface FemaleType {
  part_no: string
  version?: number
  status?: string
  part_name?: string
  part_type?: string
  material_no?: string
  rev_letter?: string
  temper?: string
  zpm_cpm?: string
  typing?: string
  classing?: string
  grade?: string
  form?: string
  size?: string
  color?: string
  material_type?: string
  product_type?: string
  spec_stan?: string
  spec_stan_rev?: string

  mat_code?: string
  test_items?: string
  required_dimension?: string
  pclr_quantity?: string
  pclr_size?: string

  plan_remark?: string
  life_limit_req?: string
  life_limit_date?: string
  life_limit_period?: string
  life_limit_manage?: string
  is_sampling?: boolean

  special_property?: string
  manufacturer?: string
  change_no?: string
  draw_no?: string
  draw_no_rev?: string
  software_code?: string
  software_rev?: string
  atp_no?: string

  is_life_limit?: boolean

  is_correct_order?: boolean
  remark?: string

  asr_features: FeatureType[]
  contents: ContentType[]
  test_contents?: any[]
  limit_contents?: any[]
}

export interface FemaleOutType extends FemaleType {
  id: number
  is_insp?: boolean
  is_test?: boolean
  create_user?: string
  create_datetime?: string
}

export interface FemaleWriteType extends FemaleType {
  id?: number
}
